package com.tledu.oop3;

import com.tledu.oop2.Student;

public class OOP06 {
    public static void main(String[] args) {
//        Student student = new Student();
//        student.name = "张三";
//        // 在另一个包中是获取不到default熟悉的
////        student.age;
//        // protected 也是这能在当前包访问，除了当前包就是它的子类
////        student.school;
//        System.out.println(student.name);
        CollegeStudents collegeStudents = new CollegeStudents();
//        collegeStudents.setAge(11);
        collegeStudents.setName("天亮教育");
//        collegeStudents.goToClass("java程序设计");
//        collegeStudents.practice();
//
//        // 创建中学
//        MiddleSchoolStudent middleSchoolStudent = new MiddleSchoolStudent("尚云");
//        System.out.println(middleSchoolStudent.getName());
//        collegeStudents.askForLeave();
//        middleSchoolStudent.askForLeave();
        collegeStudents.practice();

        // 定义的是常量，一旦赋值了，就不能再更改了
        final int num = 99;
//        num = 22;


    }
}
